package com.joker.orange.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joker.orange.domain.NovelInfo;
import com.joker.orange.domain.bo.NovelInfoBo;
import com.joker.orange.domain.vo.NovelInfoVo;
import com.joker.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 小说信息Mapper接口
 *
 * @author Joker
 * @date 2024-06-09
 */
public interface NovelInfoMapper extends BaseMapperPlus<NovelInfoMapper, NovelInfo, NovelInfoVo> {

    Page<NovelInfoVo> queryPageList(@Param("page") Page<NovelInfoVo> page, @Param(Constants.WRAPPER) Wrapper<NovelInfo> wrapper);

    void updateNovelChapterAndHeatNum(NovelInfoBo bo);
}
